function [nInput nOutput] = GenerateInput( dataset )
    global currentInput;
    global SIZE;
    
    %SIZE(1) = dimension de la entrada
    
    %si no hay mas inputs empiezo de vuelta;
    if currentInput > size(dataset,1)
        currentInput = 1;
    end
    
    nInput = dataset(currentInput,1:SIZE(1));
    nOutput = dataset(currentInput,SIZE(1)+1:SIZE(1)+SIZE(size(SIZE,2)));
    currentInput = currentInput + 1;
    
    %Los ceros los paso a -1
    for k=1:size(nInput,2)
        if nInput(k) == 0
           nInput(k) = -1; 
        end
    end
    
    for k=1:size(nOutput,2)
        if nOutput(k) == 0
           nOutput(k) = -1;
        end
    end
    
    nInput = nInput';
end